* abbrev.c (Fexpand_abbrev): Only copy the text we're going to
authorJim Blandy <jimb@redhat.com>
Tue, 23 Feb 1993 14:17:11 +0000 (14:17 +0000)
committerJim Blandy <jimb@redhat.com>
Tue, 23 Feb 1993 14:17:11 +0000 (14:17 +0000)
expand - from wordstart to wordend, not from wordstart to point -
into the buffer.  There might be non-word text between wordend and
point.

src/abbrev.c

index f56054bda515fccd5c99143c8cdea35dd6451367..c9ea673e6960feb14154ba0757afd1553a80f241 100644 (file)
@@ -257,7 +257,7 @@ Returns t if expansion took place.")
 
   p = buffer = (char *) alloca (wordend - wordstart);
 
-  for (idx = wordstart; idx < point; idx++)
+  for (idx = wordstart; idx < wordend; idx++)
     {
       register int c = FETCH_CHAR (idx);
       if (UPPERCASEP (c))